package com.example.pre.business;

import com.example.pre.model.User;

/**
 * 登录业务层接口
 * 
 * @author Administrator
 *
 */
public interface LoginBusiness {

	/**
	 * 管理员登录
	 * 
	 * @param account  账号
	 * @param password 密码
	 * @return
	 * @throws Exception
	 */
	public boolean adminLogin(String account, String password) throws Exception;

	/**
	 * 用户登录
	 * 
	 * @param account
	 * @param password
	 * @return
	 * @throws Exception
	 */
	public User userLogin(String account, String password) throws Exception;

}
